
const store = new Vuex.Store({
    state: {
        filterEquipment_type: {},
        filterEquipment_alarm: {},
        filterEquipment_link: {},
    },
    mutations: {
        // increment_type (state,payload) {
        //     // 置空传入APP.vue传来的设备类型数据
        //     state.filterEquipment_type = []
        //     state.filterEquipment_type.append(payload)
        // },
        // increment_alarm (state,payload) {
        //     // 置空传入APP.vue传来的设备类型数据
        //     state.filterEquipment_alarm = []
        //     state.filterEquipment_alarm.append(payload)
        // },
        // increment_link (state,payload) {
        //     // 置空传入APP.vue传来的设备类型数据
        //     state.filterEquipment_link = []
        //     state.filterEquipment_link.append(payload)
        // }
        INCREMENTTYPE(state,payload) {
            // 置空传入APP.vue传来的设备类型数据
            state.filterEquipment_type = {}
            state.filterEquipment_type = payload
        },
        INCREMENTALARM(state,payload) {
            // 置空传入APP.vue传来的设备类型数据
            state.filterEquipment_alarm = {}
            state.filterEquipment_alarm = payload
        },
        INCREMENTLINK(state,payload) {
            // 置空传入APP.vue传来的设备类型数据
            state.filterEquipment_link = {}
            state.filterEquipment_link = payload
        }
    }
})